<template>
  <div class="runtime-notice">
    <el-table :data="noticeList" style="width: 100%" :show-header="false">
      <el-table-column label="Title" min-width="200" prop="message"> </el-table-column>
      <el-table-column label="CreateAt" width="200" align="center" prop="createAt">
        <template slot-scope="{ row }">
          <span>{{ moment(row.createAt).format('YYYY-MM-DD HH:mm') }}</span>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import moment from 'moment';
export default {
  props: {
    noticeList: {
      type: Array,
      default: () => [],
    },
  },
  methods: {
    moment,
  },
};
</script>

<style lang="scss" scoped>
ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.runtime-notice {
  .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    width: 100%;
    height: 49px;
    position: relative;
    font-size: 14px;
    padding: 15px;
    border-bottom: 1px solid #ededed;
    span {
      display: inline-block;
    }
  }
}

.el-card.is-always-shadow {
  box-shadow: 0 2px 6px 0 rgb(0 0 0 / 1%);
}
</style>
